package com.qfedu.lc.user.service;

import com.qfedu.lc.common.param.UserAdd;
import com.qfedu.lc.common.param.UserLogin;
import com.qfedu.lc.common.vo.R;
import com.qfedu.lc.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.http.HttpRequest;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 1.用户表 服务类
 * </p>
 *
 * @author wgz
 * @since 2024-01-24
 */
public interface UserService extends IService<User> {

    /**
     * 注册用户
     * @param userAdd
     * @return
     */
     R register(UserAdd userAdd, HttpServletRequest httpRequest);


    /**
     * 登录接口
     * @param userLogin
     * @return
     */
    R loginPass(UserLogin userLogin,HttpServletRequest httpRequest);

    /**
     * 退出登录
     * @param token
     * @return
     */
    R logout(String token);
}
